package com.example.springbootredis.service;

import com.example.springbootredis.entiy.ShippingAddress;

import java.util.List;
import java.util.Optional;

public interface ShippingAddressService {
    List<ShippingAddress>findByMemberId(Long memberId);
    Optional<ShippingAddress> findByIdAndMemberId(Long id, Long memberId);
    ShippingAddress save(ShippingAddress shippingAddress);
    void deleteByIdAndMemberId(Long id, Long memberId);
    void setDefaultAddress(Long id, Long memberId);

    Optional<ShippingAddress> findById(Long id, Long memberId);
}
